<template>
  <scroll-view scroll-y class="content-shebei">
    <view v-for="(item, index) in data" :key="item.code" @click="goUrl(item.code)"
      >{{ index + 1 }}、{{ item.name }}</view
    >
  </scroll-view>
</template>

<script>
import API from "@/common/api.js";
export default {
  data() {
    return {
      data: [
       {"name":"陶家渡管桥右岸","code":"59","color":"#7ae2e9"},
        {"name":"观音岩管桥右岸","code":"24","color":"#7ae2e9"},
        {"name":"新庄管桥02","code":"85","color":"#7ae2e9"},
        {"name":"荷花池管桥02","code":"95","color":"#7ae2e9"},
        {"name":"尖山隧道","code":"73","color":"#7ae2e9"},
       
        {"name":"密地左岸","code":"152","color":"#7ae2e9"},
       
        {"name":"格里坪架空管道01 ","code":"43" ,"color":"#ace0e5"},
        {"name":"南山桥架空管道01","code":"115","color":"#ace0e5"},
        {"name":"肖沟架空管道02","code":"70","color":"#ace0e5"},
       
        {"name":"密地阀门井","code":"151","color":"#78B3B6FF"},
       
        {"name":"水质检测中心","code":"5","color":"#96c9f3"},
        {"name":"河门口原水水质监测","code":"197","color":"#96c9f3"},
        {"name":"金江原水水质监测","code":"196","color":"#96c9f3"}
      ],
    };
  },
  onShow() {},
  onLoad(options) {},
  methods: {
    goUrl(index) {
      uni.navigateTo({
        url: "./camera?index=" + index,
      });
    },
  },
};
</script>

<style lang="less" scoped>
.content-shebei {
  font-size: 28rpx;
  height: 100vh;
  background-color: white;
  view {
    padding: 30rpx 40rpx 30rpx 0;
    margin-left: 40rpx;
    border-bottom: 2rpx solid #e9e9e9;
  }
}
</style>
